export const rules = {
    lineName: [
        { required: true, message: '请输入产线名称', trigger: 'blur' },
        { min: 2, max: 20, message: '产线名称长度2-20位', trigger: 'blur' }
    ],
    lineCode: [
        { required: true, message: '请输入产线编码', trigger: 'blur' },
        { min: 2, max: 20, message: '产线编码长度2-20位', trigger: 'blur' },
    ],
    factoryCode: [
        { required: true, message: '请选择所属厂区', trigger: 'change' }
    ],
    lineLeader: [
        { required: true, message: '请选择产线负责人', trigger: 'change' }
    ],
    lineTel: [
        { required: true, message: '请输入联系电话', trigger: 'blur' },
        { pattern: /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/, message: '请输入正确的联系电话（分段使用 - ）' }
    ],
};
